home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / newsgroups / misc.19990725-20000114 / 000329_news@columbia.edu _Wed Dec 8 05:04:33 1999.msg < prev    next >
Internet Message Format  |  2020-01-01  |  4KB

  1. Return-Path: <news@columbia.edu>
  2. Received: from newsmaster.cc.columbia.edu (newsmaster.cc.columbia.edu [128.59.59.30])
  3.     by watsun.cc.columbia.edu (8.8.5/8.8.5) with ESMTP id FAA22908
  4.     for <kermit.misc@watsun.cc.columbia.edu>; Wed, 8 Dec 1999 05:04:33 -0500 (EST)
  5. Received: (from news@localhost)
  6.     by newsmaster.cc.columbia.edu (8.8.5/8.8.5) id FAA28900
  7.     for kermit.misc@watsun.cc.columbia.edu; Wed, 8 Dec 1999 05:01:34 -0500 (EST)
  8. X-Authentication-Warning: newsmaster.cc.columbia.edu: news set sender to <news> using -f
  9. Date: Wed, 8 Dec 1999 00:14:34 -0700 
  10. From: <Use-Author-Address-Header@[127.1]>
  11. Message-ID: <TCPSMTP.19.12.8.0.14.34.2375661496.5936642@kincyb.com>
  12. Subject: screen  / c-kermit notes
  13. Organization: mail2news@nym.alias.net
  14. To: kermit.misc@columbia.edu
  15.  
  16.  
  17. (sent to comp.protocols.kermit.misc,
  18. plug-discuss@plug.phoenix.az.us)
  19.  
  20. Below is an example from /etc/syslog.conf showing how
  21. to send system logging to a virtual console as 
  22. Jim Dennis (LinuxCare/Linux Gazette) described in his
  23. talk while at PLUG (Phoenix, AZ, USA) last month.
  24. Just uncomment the 'daemon...' parts and set the 
  25. /dev/ttyX part to point to the desired virtual console
  26. you want to watch the system logging on.
  27.  
  28. #
  29. # I like to have messages displayed on the console, but only on a virtual
  30. # console I usually leave idle.
  31. #
  32. #daemon,mail.*;\
  33. #     news.=crit;news.=err;news.=notice;\
  34. #     *.=debug;*.=info;\
  35. #     *.=notice;*.=warn     /dev/tty8
  36.  
  37. #    to this:
  38.  
  39. daemon,mail.*;\
  40.      news.=crit;news.=err;news.=notice;\
  41.      *.=debug;*.=info;\
  42.      *.=notice;*.=warn     /dev/tty48
  43.  
  44. I recently wanted to do the same thing with my C-Kermit
  45. session logging.  (this could apply to any program that
  46. keeps some kind of log, but this was the particular program
  47. I wanted to do this with.)  Trying to do this directly
  48. to one of the normal virtual consoles, from a non-root
  49. userid ran into all kinds of permission problems.
  50. I then tried starting one of the other programs Jim Dennis
  51. was enthusiastic about, 'screen', and tried sending the 
  52. kermit logging to it and again ran into permission problems.
  53. A method I found that did work was to set up a link to
  54. one of the screen supported virtual links:
  55.  
  56. $ln /dev/ttya2  portal
  57.  
  58. # start screen
  59.  
  60. $screen
  61. $^A ^C      # activating ttya1
  62. $^A ^C      # activating ttya2
  63. $^A  1      # go to console #1 (ttya1)
  64.  
  65. $kermit     # starting c-kermit 
  66.  
  67. C-kermit> log session portal         # to simply send logging to ttya2
  68.  
  69.              or
  70.  
  71.  log session {| tee portal | tee session.raw | ansi2text.sed > session.txt}
  72.  
  73. to get fancy with it.
  74. (At least this worked on my Debian 2,1 system. :-) )
  75. ttya2 now keeps a pristine copy of the most recent screenfull of 
  76. connect mode interaction, ungrunged by trips from the connect terminal 
  77. session to the kermit command line and back.
  78.  
  79. The documentation for 'screen' prominently warns about problems using
  80. screen with Kermit (and z-modem) transfers since the screen escape 
  81. character, ^A is the same as the kermit packet framing character ^A.
  82. More recent versions of C-Kermit have the capability to change
  83. the start of frame character, as is documented in 
  84. "Using C-Kermit", 2nd edition on pages 217-219, using
  85. the 
  86.  
  87. set {send,receive} start-of-packet ^<some character>
  88.  
  89. command, so this should be a minor inconvenience for
  90. serious use.
  91.  
  92. One other thing I do is use to the little documented 'tty'
  93. command, in my bash startup scripts, to capture the 
  94. console in use and stick in  my prompt so it's easier to
  95. know which one I'm in.
  96. ($console = `tty`)
  97.  
  98. Much thanks to Jim Dennis for his willingness to share
  99. his time, knowledge and enthusiasm.  I met him again at 
  100. Sky Harbor airport the Friday after he spoke at ASU,
  101. and he was graciously answering questions almost up
  102. to the moment of boarding his plane!
  103.  
  104. Regards, Dallas E. Legan 
  105.          dallasii
  106.                  @
  107.                   kincyb
  108.                         .
  109.                           com
  110.          leganii
  111.                 @
  112.                  surfree
  113.                         .
  114.                          com
  115.  
  116.